<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <body>
    <div class="definicion">

      <g:form action="save" method="post" autocomplete="off" name="definicion">
        <input type="hidden" name="eOc" value="${eOc}"/>
        <input type="text" id="id" name="id" value="" disabled class="disabled" style="display:none; "/>  
        <table width="300" align="center">
          <tbody>
            <tr class="prop">
              <td width="200" valign="top" class="value ${hasErrors(bean: alumno, field: 'alumnos', 'errors')}">
                <input  type="text" class="" name="alumno" value="${alumnos.cedula}" id="alumno" style="width:200px" readonly class="campos" />
              </td>
            </tr>
            <tr>
              <td>
          <g:select name="materia"
                    from="${sucre.Materia.list()}"
                    value="" class="campos" style="width:200px"
                    optionKey="id"  
                    optionValue="nombre"
                    noSelection="${['':'Todas las materias']}"
                    onChange="${remoteFunction(action: 'reder1',
update: [success: 'divRender1',
  failure: 'ohno'],
params:'\'materia=\'+escape(this.value)+\'&alumno=\'+document.getElementById(\'alumno\').value' )}"
                    />
          </td>
          </tr>
          <tr>
            <td align="center" height="30px">
          
              </td>
            </tr>
          <tr>
          <tr>
            <td align="center">
          <g:remoteLink action="reder1" update="divRender1" params="[alumno:alumnos.cedula]">Cargar materia</g:remoteLink>
          </td>
          </tr>
          </tbody>
        </table>
        <div id="divRender1" >
        </div>
      </g:form>
    </div>
  </body>
</html>